﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    教师教学时数监控
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "教师教学时数监控"); %>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <% using (Ajax.BeginForm("TeacherHoursListUc", new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "listDiv", }))
           {%>
        <tr class="box06">
            <td height="27" align="center">
                <div align="right">
                    教师账号 :</div>
            </td>
            <td align="left" class="bg3">
                <input name="uidSearch" type="text" size="18" />
            </td>
            <td align="center">
                <div align="right">
                    身份 :</div>
            </td>
            <td colspan="" align="left" class="bg3">
                <select id="Type" name="Type">
                    <option value="-1">全部</option>
                    <option value="1">负责教师</option>
                    <option value="2">主讲教师</option>
                    <option value="3">助教</option>
                </select>
            </td>
            <td align="center">
                <div align="right">
                    姓名 :</div>
            </td>
            <td colspan="" align="center" class="bg3">
                <div align="left">
                    <input name="nameSearch" type="text" size="18" /><input type="submit" value="查询" />
                </div>
            </td>
               <td height="27" align="center">
                <div align="right">
                    总学时 :</div>
            </td>
            <td align="left" class="bg3" colspan="">
                <%=CourseSettingBLL.Get().TeacherHours%>
                <button id="btnAdd">
                    编辑总学时</button>
            </td>
        </tr>
        <% } %>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <tr class="box03">
            <td height="28" colspan="4" align="center">
                <div align="right">
                </div>
                <div align="center">
                     学生提问数:<%=QuestionBLL.GetCount() %>  未回答:<%=QuestionBLL.GetNotReCount() %>
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <div id="listDiv">
        <% Html.RenderAction("TeacherHoursListUc"); %>
    </div>
    <div id="editDiv" title="编辑教师总学时数">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">

        $(function () {
            $("#editDiv").dialog({
                autoOpen: false,
                height: 220,
                width: 300,
                modal: true,
                close: function () {
                    window.location.reload();
                }
            });

            $("#btnAdd")
			.click(function () {
			    $("#editDiv").html("loading...");
			    $("#editDiv").load(appRoot + 'AdminMonitor/TeacherHoursEditUc/' + "?rd=" + rdTime());
			    $("#editDiv").dialog("open");
			});

        });

    </script>
</asp:Content>
